<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>Git</title>
    <meta name="generator" content="Muse">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <link rel="stylesheet" type="text/css"charset="utf-8" media="all" href="../../styles/common.css"  />

    <script src="../../scripts/jsMath/easy/load.js"></script>
  </head>

  <body>

    <h1>Git
      <!-- menu start here -->
      <div class="menu">
        <div class="menuitem">
          <a href="../../home/index.html">Home</a>
        </div>
        <div class="menuitem">
          <a href="../../courses/index.html">Courses</a>
        </div>
        <div class="menuitem">
          <a href="../../projects/index.html">Projects</a>
        </div>
        <div class="menuitem">
          <a href="../../complang/index.html">CompLang</a>
        </div>
        <div class="menuitem">
          <a href="../../code/index.html">CodeReading</a>
        </div>
        <div class="menuitem">
          <a href="../../software/index.html">Software</a>
        </div>
        <div class="menuitem">
          <a href="../../lectures/index.html">Lectures</a>
        </div>
      </div>
      <!-- menu ends here -->

    </h1>


    <!-- Page published by Emacs Muse begins here -->

<h2>git-diff</h2>

<h3>Show changes only in a specific directory</h3>

<h4>Show staged changes</h4>

<p><code>
git diff --stat --cached -- &lt;directory_of_interest&gt;
</code></p>


<h4>Show unstaged changes</h4>

<p><code>
git diff --stat -- &lt;directory_of_interest&gt;
</code></p>


<h4>Show both</h4>

<p><code>
git diff --stat HEAD -- &lt;directory_of_interest&gt;
</code></p>





<!-- Page published by Emacs Muse ends here -->
<hl />
<p />
<!-- <center> -->
<!--   Updated at  -->
<!--   2010-03-04 -->
<!-- </center> -->

<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-2241833-12");
  pageTracker._trackPageview();
  } catch(err) {}</script>

</body>
</html>

